package com.fruit.logistics.yunda.pojo.route;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fruit.logistics.yunda.pojo.YDResponse;
import lombok.Data;
import lombok.ToString;

import java.util.Collections;
import java.util.List;

/**
 * 路由查询接口响应
 *
 * @author joe
 * @version 2018.05.15 17:13
 */
@Data
@ToString(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class YDRouteResponse extends YDResponse {
    /**
     * 运单号
     */
    private String mailno;
    /**
     * 请求状态，成功为true，失败为false
     */
    private boolean result;
    /**
     * 错误时错误提示
     */
    private String remark;
    /**
     * 时间，格式：yyyy-MM-dd HH:mm:ss
     */
    private String time;
    /**
     * 物流状态：
     * <p>
     * <li>create：订单创建</li>
     * <li>withdraw：订单已取消</li>
     * <li>accept：接单成功</li>
     * <li>refuse：地址不送达</li>
     */
    private String status;
    /**
     * 重量信息
     */
    private String weight;
    /**
     * 物流跟踪
     */
    private List<Trace> steps = Collections.emptyList();
}
